package com.company.sendemo.basics.yyPersonalSummary;

import java.util.*;

//数组、字符串(String) 是 长度(length)
//对象、list、set、hasmap、hasset 是 大小(size)
public class LengthSize {
    //构造函数(构造器)
    public LengthSize() {
        newmethod(); //方法
    }

    private void newmethod() {
    }


    public static void main(String[] args) {
        int[] a = new int[]{3, 5, 6, 234, 32}; //数组
        List<String> list3 = new ArrayList<>();//list
        List<String> list = new LinkedList<>();//list
        Set<Object> set = new TreeSet<>();     //set
        String aa = "123456wer";               //字符串
//        List<SdcDecodeDataEntity> decodeData = sdcDecodeDataService.selectSdcDecodeDataByVIN(vin);
                                               //对象
        HashSet hashSet = new HashSet();       //HashSet 封装了 hashmap 和 treemap
        HashMap hashMap = new HashMap();       //HashMap

        System.out.println(a.length);
        System.out.println(aa.length());
        //对象的本质是 LIST 所以是大小size
        System.out.println(list3.size());
        System.out.println(list.size());
        System.out.println(set.size());
        System.out.println(hashSet.size());
        System.out.println(hashMap.size());
        newconstruction();

    }
    //方法
    private static void newconstruction() {
    }
}


